<template>
  <div>
    测试页面222
    <van-button
      style="position: fixed;bottom: 20vh;"
      block
      @click="handleShare"
    >分享</van-button>
    <van-button @click="getUserInfoTest">
      获取用户信息
    </van-button>
  </div>
</template>

<script setup>
import { onMounted } from "vue";
import { getUserInfo,getAppInfo } from '../appSdk'
import useApp from "../hooks/useApp";
const { getAppUserInfo,appShare } = useApp()
function getUserInfoSuccess(data) {
    console.log(data,'userinfo')
}
onMounted(() => {
   
})
const getUserInfoTest =() => {
  console.log(']]]]]]')
  getAppUserInfo().then((result) => {
        console.log(result,'result')
    })
}
const handleShare = () => {
  appShare()
}
</script>

<style>

</style>